﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AgencyManagerSystem.Common
{
    [Obsolete]
    public interface IRequestScoped
    {
        string GetTranString();
        void SetTranString(string tran);
        string GetTokenString();
        void SetTokenString(string token);
        void SetUid(int uid);
        int GetUid();
        void SetDepartmentId(int uid);
        int GetDepartmentId();
    }
    [Obsolete]
    public class RequestScoped : IRequestScoped
    {
        public string Tran { get; set; }
        public string GetTranString()
        {
            return Tran;
        }
        public void SetTranString(string tran)
        {
            this.Tran = tran;
        }
        public string Token { get; set; }
        public string GetTokenString()
        {
            return Token;
        }
        public void SetTokenString(string token)
        {
            this.Token = token;
        }
        public int Uid { get; set; }
        public void SetUid(int uid)
        {
            Uid = uid;
        }

        public int GetUid()
        {
            return Uid;
        }
        public int DepartmentId;
        public void SetDepartmentId(int deptId)
        {
            DepartmentId = deptId;
        }

        public int GetDepartmentId()
        {
            return DepartmentId;
        }
    }
}
